<?php
function callback_init(){
	$kv = new SaeKV();
    // 初始化KVClient对象
    $kv->init();
    $kv->set("anti_spam_comment_data", 'a:7:{s:10:"time_limit";i:10;s:9:"blacklist";a:1:{i:0;s:0:"";}s:14:"auto_blacklist";i:1;s:11:"max_attempt";i:10;s:8:"keywords";s:39:"<a href=*>*</a>|[url=*]*[/url]|asc_char";s:13:"name_keywords";s:0:"";s:12:"url_keywords";a:1:{i:0;s:0:"";}}');
	$kv->set("anti_spam_comment_temp",'a:3:{s:2:"ip";a:0:{}s:4:"time";a:0:{}s:7:"attempt";a:0:{}}');
	if ($kv->errno() != 0) {
		emMsg ($kv->errmsg ());
	}
}

function callback_rm(){
	$kv = new SaeKV();
    $kv->init();
	$kv->delete("anti_spam_comment_data");
	$kv->delete("anti_spam_comment_temp");
}